﻿MessageTypes = {
    Normal:"normal",
    Error:"error",
    Success:"success",
    Warning:"warning"
}

function Notify(message, type, time) {
    var Type = type != null & type != "" ? type : MessageTypes.Normal;
    var Time = !isNaN(time) ? time : 5000;

    $("#Notify").attr("class", Type).html(message).fadeIn().delay(Time).fadeOut();
}